
#ifndef TYPES_H__
#define TYPES_H__

#include <list.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _tag_yapi_ser_config_
{
    char* ip;
    char* port;
    char* index;
    char* space;
} YapiSerConfig;

typedef struct _tag_hj212_ser_config_
{
    char* ip;
    char* pwd;
    char* mn;
    int port;
} Hj212SerConfig;

typedef struct _tag_csv_node_
{
    struct list_head list;
    char* name;
    char* code;
    //char* avg;
} CsvNode;


typedef void Message;
typedef struct _tag_socket_parser_t
{
    //char* name;
    Message* (*readmem)(struct _tag_socket_parser_t* parser, unsigned char* mem, unsigned int size);
    Message* (*readfd)(struct _tag_socket_parser_t* parser, int fd);
    void (*reset)(void);
} SocketParser;



#ifdef __cplusplus
}
#endif


#endif /* TYPES_H_ */